<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" trimDirectiveWhitespaces="true"%>
<%@ include file="/WEB-INF/views/taglibs.jsp"%>

<div class="header">
  <p>
    <span class="span1">
      <a href="${contextPath }/index">Big Data Harbour首页</a>
      <c:if test="${not empty user}">
        |<a href="${contextPath }/api/upload">我有数据</a>
      </c:if>
    </span>
    <span class="span2">欢迎来到Big Data Harbour平台！
      <c:if test="${not empty user}">
        <span style="margin:0 8px;">${user.name }</span>
        <shiro:hasPermission name="Article:show">
          |<a href="${contextPath }/manager/article/list" target="_blank">控制台</a>
        </shiro:hasPermission>
		|<a href="${contextPath }/logout">注销</a>
      </c:if>
      <c:if test="${empty user}">请<a href="${contextPath }/login">登录</a>|<a href="${contextPath }/index/registered">免费注册</a></c:if>
    </span>
  </p>
</div>
<h1 class="logo">
  <div style="float:left;"><a href="#"><img src="${contextPath }/styles/themes/images/logo.png" alt="Third slide"></a></div>
  <div class="rtext2">
    <form action="${contextPath }/main/api/list">
      <input name="title" type="text" class="textint" value="${param.title }" />
      <input name="" type="submit" value="搜索" class="intbtn">
    </form>
  </div>
</h1>
<div class="mnav">
<div class="navbar navbar-default">
  <div class="container-fluid">
    <div id="navbar" class="navbar-collapse collapse">
      <ul class="nav navbar-nav">
        <li><a href="${contextPath }/index">首页</a></li>
        <li class="active"><a href="${contextPath }/main/api/list">Api列表</a></li>
      </ul>
    </div>
  </div>
</div>
</div>